package com.zdj.presentation.modules.demo;

import android.os.Bundle;
import android.util.Log;

import com.zdj.app.AppConfig;
import com.zdj.presentation.R;
import com.zdj.presentation.base.BaseActivity;
import com.zdj.presentation.databinding.ActivityTestGsonBinding;
import com.zdj.presentation.modules.demo.vms.TestGsonVm;
import com.zdj.utils.AuthorHelper;
import com.zdj.utils.MD5;

public class TestGsonActivity extends BaseActivity<TestGsonVm,ActivityTestGsonBinding> {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        AppConfig.BASIC = AuthorHelper.createBasicValue("15656969193", MD5.getMD5Code("123456"));
    }

    @Override
    protected void initVms() {
        viewModel = new TestGsonVm(this);
    }

    @Override
    protected int getContentLayoutId() {
        return R.layout.activity_test_gson;
    }

    @Override
    protected void setViewModel2Binding() {
        viewDatabinding.setTestGsonVm(viewModel);
    }

    @Override
    protected void initView() {
        Log.d(TAG, "initView: 测试编译速度");
        System.out.println("测试编译速度");
    }

}
